package lntu.chap03;

public class Student {
        private String name;
        private int age;
        private int number;
        private String className;

        public Student(){}

        public Student(String name,int age,int number,String className){
            this.name = name;
            this.age = age;
            this.number = number;
            this.className = className;
        }
        public void setName(String name){

            this.name = name;
        }
        public String getName(){

            return name;
        }
        public void setAge(int age){

            this.age = age;
        }
        public int getAge(){
            return age;
        }
        public void setNumber(int number){
            this.number = number;
        }
        public int getNumber(){
            return number;
        }
        public void setClassName(String className){
            this.className = className;
        }
        public String getClassName(){
            return className;
        }
        public void show(){
            System.out.println("学生姓名："+this.name+","+"年龄："+this.age+","+"学号："+this.number+","+"班级："+this.className);
        }
        public void study(){
            System.out.println("我叫"+this.name+","+"是"+this.className+"的学生");
        }
}
